package com.cqrcb.cloud.service.activity;

import com.cqrcb.cloud.entity.exception.CustomException;
import com.cqrcb.cloud.entity.exception.ExceptionMember;
import com.cqrcb.cloud.mapper.activity.ActivityMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* ActivityImpl
*
* @author 系统
* @date 2021-06-04 02:07:58
*/
@Service
@DubboService
//@Transactional(readOnly = true, rollbackFor = Exception.class)
public class ActivityImpl implements ActivityService {
    @Autowired
    private ActivityMapper activityMapper;


    @Override
    public void queryActivityById(String id) {
        if(id == null){
            throw new CustomException(ExceptionMember.ACTIVITY_ID_NULL_ERROR);
        }
    }
}
